package io.bdmc.modules.bss.service.impl;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.DeviceMachinePower;
import io.bdmc.modules.bss.mapper.DeviceMachinePowerMapper;
import io.bdmc.modules.bss.service.IDeviceMachinePowerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 子机框电源数据表 服务实现类
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Service
public class DeviceMachinePowerServiceImpl extends ServiceImpl<DeviceMachinePowerMapper, DeviceMachinePower> implements IDeviceMachinePowerService {
    @Autowired
    DeviceMachinePowerMapper _devicemachinepowerMapper;

    @Override
    public MyPage<DeviceMachinePower> mySelectPage(MyPage<DeviceMachinePower> myPage) {
        return _devicemachinepowerMapper.mySelectPage(myPage);
    }

    @Override
    public List<DeviceMachinePower> selectLastPowerData(String diskSn) {
        return _devicemachinepowerMapper.selectLastPowerData(diskSn);
    }
}
